/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoeducation.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 专业管理Entity
 *
 * @author yt
 * @version 2017-10-18
 */
public class CampusinfoMajor extends DataEntity<CampusinfoMajor> {

    private static final long serialVersionUID = 1L;
    private String majorname;        // 专业名称
    private String majorcontent;        // 专业描述
    private String collegeid;        // 学院id
    private String schoolid;        // 学校id
    private String payment;        // 支付方式
    private String schoolname;    //学校名称
    private String collegename;   //学院名称

    public CampusinfoMajor() {
        super();
    }

    public CampusinfoMajor(String id) {
        super(id);
    }

    public void setSchoolname(String schoolname) {
        this.schoolname = schoolname;
    }

    public String getSchoolname() {
        return schoolname;
    }

    public void setCollegename(String collegename) {
        this.collegename = collegename;
    }

    public String getCollegename() {
        return collegename;
    }

    @Length(min = 1, max = 64, message = "专业名称长度必须介于 1 和 64 之间")
    public String getMajorname() {
        return majorname;
    }

    public void setMajorname(String majorname) {
        this.majorname = majorname;
    }

    @Length(min = 0, max = 255, message = "专业描述长度必须介于 0 和 255 之间")
    public String getMajorcontent() {
        return majorcontent;
    }

    public void setMajorcontent(String majorcontent) {
        this.majorcontent = majorcontent;
    }

    @Length(min = 1, max = 64, message = "学院id长度必须介于 1 和 64 之间")
    public String getCollegeid() {
        return collegeid;
    }

    public void setCollegeid(String collegeid) {
        this.collegeid = collegeid;
    }

    @Length(min = 1, max = 64, message = "学校id长度必须介于 1 和 64 之间")
    public String getSchoolid() {
        return schoolid;
    }

    public void setSchoolid(String schoolid) {
        this.schoolid = schoolid;
    }

    @Length(min = 0, max = 255, message = "支付方式长度必须介于 0 和 255 之间")
    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

}